Skip to content

Polygon box transform op for OCR East detection. #10802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 26, 2018

Conversation

wanghaoshuang
Copy link
Contributor

@wanghaoshuang wanghaoshuang commented May 21, 2018

@wanghaoshuang wanghaoshuang changed the title Add quad transform. Add quad transform op. May 21, 2018
class QuadTransformOpMaker : public framework::OpProtoAndCheckerMaker {
public:
void Make() override {
AddInput("Input", "The input with shape [batch_size, 8, height, width]");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the shape can be more general, do not fix to 8.

namespace paddle {
namespace operators {

#define GEO_CHANNEL 8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code in .h can be moved to .cc and .h can be removed.

@wanghaoshuang wanghaoshuang changed the title Add quad transform op. Add box restore op. May 25, 2018
places.append(core.CUDAPlace(0))
# if core.is_compiled_with_cuda() and core.op_support_gpu(self.op_type):

# places.append(core.CUDAPlace(0))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to resume the code.

using Tensor = framework::Tensor;

template <typename DeviceContext, typename T>
class BoxRestoreCPUKernel : public framework::OpKernel<T> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the name can call:

PolygonBoxTransform ?

1. rename op
2. uncomment unitest on GPU
Copy link
Contributor

@qingqing01 qingqing01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the op name in test_polygon_box_transform_op.py in next PR.

@qingqing01 qingqing01 changed the title Add box restore op. Polygon box transform op for OCR East detection. May 26, 2018
@qingqing01 qingqing01 merged commit 376c948 into PaddlePaddle:develop May 26, 2018
@wanghaoshuang wanghaoshuang deleted the quad_transform branch June 1, 2018 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants